#ifndef __I2C1_H
#define __I2C1_H

#include "stm32f1xx_hal.h"


/* Private function prototypes -----------------------------------------------*/
void I2C1_Configuration(void);

FunctionalState I2C1_WriteByte(uint8_t SendByte, uint16_t WriteAddress, uint8_t DeviceAddress);

FunctionalState I2C1_ReadByte(uint8_t *pBuffer, uint16_t length, uint16_t ReadAddress, uint8_t DeviceAddress);

uint8_t IIC1_read_one_byte(uint16_t ReadAddr);

void IIC1_write_one_byte(uint16_t WriteAddr, uint8_t DataToWrite);

void IIC1_write_one_byte_CRC(uint16_t WriteAddr, uint16_t DataToWrite);

uint8_t IIC1_read_one_byte(uint16_t ReadAddr);

void HAL_Delay_us(uint32_t nus);

void HAL_Delay_us_init(void);

#endif
/*********************************************************************************************************
      END FILE
*********************************************************************************************************/
